package com.xca.photogallery.views;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import com.xca.photogallery.R;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    private TextView tv1 , tv2 ;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        init();
    }
    private void init(){
        tv1 = findViewById(R.id.m1) ;
        tv2 = findViewById(R.id.m2) ;
        tv1.setOnClickListener(this);
        tv2.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        int id = v.getId() ;
        if (id == R.id.m1){
            Intent intent = new Intent(MainActivity.this , DayImageActivity.class);
            startActivity(intent);
        } else if (id == R.id.m2) {
            Intent intent = new Intent(MainActivity.this , AvatarListActivity.class);
            startActivity(intent);
        }
    }
}